
<div id="content-box">
	<h3><?php __('Tin Mới');?></h3>
	<table class="tablecolors" cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('Công việc','tencv');?></th>
			<th><?php echo ('Chuyên môn');?></th>
			<th><?php echo $this->Paginator->sort('Mức lương','mucluong');?></th>
            <th><?php echo ('Nơi làm việc');?></th>
            <th><?php echo ('ngaydang');?></th>
            
			<th class="actions"><?php __('Thao Tác');?></th>
	</tr>
    <?php
	$i = 0;
	foreach ($dangkies as $dangky):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr>
		<td><?php echo $dangky['Dangky']['tencv']; ?>&nbsp;</td>
		<td>
        <?php if (!empty($dangky['Chuyenmon']))
            {
                $strCM = "";
                    $i = 0;
    		foreach ($dangky['Chuyenmon'] as $cm)
             {
    			$class = null;
    			if ($i++ % 2 == 0) 
                {
                   $class = ' class="altrow"';
                }
                
                if($strCM != "")  
                {
                   $strCM.=", ". $cm['diengiaicm'];
                }
                else
                {
                   $strCM = $cm['diengiaicm'];
                }
              }
                     echo  $strCM;
            }
        ?>
        </td>
       	<td><?php echo $dangky['Dangky']['mucluong']; ?>&nbsp;</td>
        <td>
    <?php if (!empty($dangky['Tinhtp']))
        {
            $strTP = "";
                $i = 0;
		foreach ($dangky['Tinhtp'] as $tp)
         {
			$class = null;
			if ($i++ % 2 == 0) 
            {
               $class = ' class="altrow"';
            }
            
            if($strTP != "")  
            {
               $strTP.=", ". $tp['tenttp'];
            }
            else
            {
               $strTP = $tp['tenttp'];
            }
          }
                 echo  $strTP;
        }
    ?>
   </td>
		<td><?php echo $dangky['Dangky']['ngaydang']; ?>&nbsp;</td>
		<td class="actions" align="center">
			<?php 	echo $html->link('View', array('action' => 'view', $dangky['Dangky']['id']),array('class' => 'view_icon',"return false;")); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>













